﻿


using System;
using System.Text;
using System.Collections;
using System.Xml;
using System.Data;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Resources;
using System.Reflection;
using System.Globalization;
using System.Threading;

using Telerik.WebControls;
using UFSoft.UBF.UI.WebControls;
using UFSoft.UBF.UI.WebControls.InterActionComponenet;
using UFSoft.UBF.Util.Log;
using UFSoft.UBF.Util.Context;

//using MagicAjax.UI.Controls;
using UFSoft.UBF.Report.UI.ReportView.Web;
using UFSoft.UBF.UI.WebControlAdapter;
using UFSoft.UBF.UI.FormProcess;
using UFSoft.UBF.UI.IView;
using UFSoft.UBF.UI.Engine;
using UFSoft.UBF.UI.Engine.Builder;
using UFSoft.UBF.UI.Engine.Authorization;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.ActionProcess;
using UFSoft.UBF.UI.ControlModel;
using UFSoft.UBF.UI.Controls;
using UFSoft.UBF.UI.WebControls.Association;
using UFSoft.UBF.UI.WebControls.ClientCallBack;
using System.Web.UI;
using UFSoft.UBF.UI.UIFormPersonalization;
using System.Collections.Specialized;


/***********************************************************************************************
 * Form ID:adf475c9-3bff-4962-bc44-3fa4473d517d 
 * Form Name:AITBarCodeForm
 * UIFactory Auto Generator
 ***********************************************************************************************/
namespace UFIDA.U9.CUST.AITBarCodeUI
{
	[FormRegister("UFIDA.U9.CUST.AITBarCodeUI","UFIDA.U9.CUST.AITBarCodeUI.AITBarCodeFormWebPart", "UFIDA.U9.CUST.AITBarCodeUI.WebPart", "adf475c9-3bff-4962-bc44-3fa4473d517d","WebPart", "True", 992, 504)] 
	///insert into aspnet_Parts (SysVersion, Path, ClassName, [Assembly], FormId) values (0, 'UFIDA.U9.CUST.AITBarCodeUI', 'UFIDA.U9.CUST.AITBarCodeUI.AITBarCodeFormWebPart', 'UFIDA.U9.CUST.AITBarCodeUI.WebPart', 'adf475c9-3bff-4962-bc44-3fa4473d517d')
	///<siteMapNode url="~/erp/simple.aspx?lnk=adf475c9-3bff-4962-bc44-3fa4473d517d" title="AITBarCodeForm"/>
    public partial class AITBarCodeFormWebPart : UFSoft.UBF.UI.FormProcess.BaseWebForm
    {
		#region Page Controller/Code Behind
        private static readonly ILogger logger = LoggerManager.GetLogger(typeof(AITBarCodeFormWebPart));
        private string assemblyName = System.Reflection.Assembly.GetExecutingAssembly().FullName;
        //private string displayNamePostfix = "displayName";

		#region 强类型化基类属性.
		public new AITBarCodeUIAction Action
		{
			get { return (AITBarCodeUIAction)base.Action; }
			set { base.Action = value; }
		}
		AITBarCodeUIModel _uimodel=null;
		public new AITBarCodeUIModel Model
		{
			get 
			{
			     if(_uimodel == null){
			          _uimodel = new AITBarCodeUIModel();
			     }
			     return _uimodel; 
			}
			set { _uimodel = value; }
		}
        protected override IUIModel UIModel{
            get{
                return this.Model;
            }
            set{
                this.Model = value as AITBarCodeUIModel;
            }
        }
		#endregion 
		public FormAdjust adjust;
        #region variable declaration
        IUFToolbar Toolbar2;
        IUFButton BtnSave;
        IUFButton BtnCancel;
        IUFButton BtnAdd;
        IUFButton BtnDelete;
        IUFSeparator Separator0;
        IUFButton BtnCopy;
        IUFSeparator Separator1;
        IUFButton BtnSubmit;
        IUFButton BtnApprove;
        IUFButton BtnUndoApprove;
        IUFSeparator Separator2;
        IUFButton BtnFind;
        IUFButton BtnList;
        IUFSeparator Separator3;
        IUFButton BtnFirstPage;
        IUFButton BtnPrevPage;
        IUFButton BtnNextPage;
        IUFButton BtnLastPage;
        IUFSeparator Separator4;
        IUFButton BtnAttachment;
        IUFButton BtnFlow;
        IUFSeparator Separator5;
        IUFButton BtnOutput;
        IUFButton BtnPrint;
        IUFCard Card0;
        IUFDropDownButton DDBtnOperation;
        IUFMenu MOList;
        IUFMenu QCList;
        IUFMenu ShipList;
        IUFMenu RcvList;
        IUFDropDownButton DDBtnActivity;
        IUFDropDownButton DDBtnQuery;
        IUFDropDownButton DDBtnTaskLink;
        IUFButton BtnOk;
        IUFButton BtnClose;
        IUFButton BtnReload;
        IUFButton BtnRefresh;
        IUFButton BtnCreateBarCode;
        IUFCard Card3;
        IUFDataGrid DataGrid1;
		UpdatePanel updatePanel;
		HiddenField wpFindID;
		IUFContainer topLevelPanel;     
        IUFSeparator SeparatorInFavorites;
        IUFButton BtnDefaultValues;
        #endregion
        
        #region constructor
        public AITBarCodeFormWebPart()
        {
            FormID = "adf475c9-3bff-4962-bc44-3fa4473d517d";
            IsAutoSize = bool.Parse("True");
            NewIsAutoSize = bool.Parse("True");
        }
        #endregion


	
            
	//获取档案版型结果: 

        #region eventBind and databind
        private void EventBind()
        {
			//事件绑定模板
				//Button控件事件
			this.BtnSave.Click += new EventHandler(BtnSave_Click);		
						
				//Button控件事件
			this.BtnCancel.Click += new EventHandler(BtnCancel_Click);		
						
				//Button控件事件
			this.BtnAdd.Click += new EventHandler(BtnAdd_Click);		
						
				//Button控件事件
			this.BtnDelete.Click += new EventHandler(BtnDelete_Click);		
						
				//Button控件事件
			this.BtnCopy.Click += new EventHandler(BtnCopy_Click);		
						
				//Button控件事件
			this.BtnSubmit.Click += new EventHandler(BtnSubmit_Click);		
						
				//Button控件事件
			this.BtnApprove.Click += new EventHandler(BtnApprove_Click);		
						
				//Button控件事件
			this.BtnUndoApprove.Click += new EventHandler(BtnUndoApprove_Click);		
						
				//Button控件事件
			this.BtnFind.Click += new EventHandler(BtnFind_Click);		
						
				//Button控件事件
			this.BtnList.Click += new EventHandler(BtnList_Click);		
						
				//Button控件事件
			this.BtnFirstPage.Click += new EventHandler(BtnFirstPage_Click);		
						
				//Button控件事件
			this.BtnPrevPage.Click += new EventHandler(BtnPrevPage_Click);		
						
				//Button控件事件
			this.BtnNextPage.Click += new EventHandler(BtnNextPage_Click);		
						
				//Button控件事件
			this.BtnLastPage.Click += new EventHandler(BtnLastPage_Click);		
						
				//Button控件事件
			this.BtnAttachment.Click += new EventHandler(BtnAttachment_Click);		
						
				//Button控件事件
			this.BtnFlow.Click += new EventHandler(BtnFlow_Click);		
						
				//Button控件事件
			this.BtnOutput.Click += new EventHandler(BtnOutput_Click);		
						
				//Button控件事件
			this.BtnPrint.Click += new EventHandler(BtnPrint_Click);		
						
				//DropDownButton下面的MenuModel控件事件
			this.MOList.ItemClick += new MenuItemHandle(MOList_Click);
			((PopMenuItem)this.MOList).MethodName = "MOList_Click";				
				
				//DropDownButton下面的MenuModel控件事件
			this.QCList.ItemClick += new MenuItemHandle(QCList_Click);
			((PopMenuItem)this.QCList).MethodName = "QCList_Click";				
				
				//DropDownButton下面的MenuModel控件事件
			this.ShipList.ItemClick += new MenuItemHandle(ShipList_Click);
			((PopMenuItem)this.ShipList).MethodName = "ShipList_Click";				
				
				//DropDownButton下面的MenuModel控件事件
			this.RcvList.ItemClick += new MenuItemHandle(RcvList_Click);
			((PopMenuItem)this.RcvList).MethodName = "RcvList_Click";				
				
				//Button控件事件
			this.BtnReload.Click += new EventHandler(BtnReload_Click);		
						
				//Button控件事件
			this.BtnRefresh.Click += new EventHandler(BtnRefresh_Click);		
						
				//Button控件事件
			this.BtnCreateBarCode.Click += new EventHandler(BtnCreateBarCode_Click);		
						

	
             //Grid控件的客户化筛选，定位事件
            ((UFWebDataGridAdapter)this.DataGrid1).GridCustomFilterHandler += new GridCustomFilterDelegate(UFGridDataGrid1_GridCustomFilterHandler);

            AfterEventBind();
        }
        #endregion            
        
		#region override method
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad2(e);
		}
		protected override void OnLoadDataDo(EventArgs e)
		{
		    adjust.ProcessAdjustBeforeOnLoad(this);
			if (UIEngineHelper.IsDataBind(PageStatus, this))
			{
				if(this.Model==null){				        
					this.Model = new AITBarCodeUIModel();
				}
				OnLoadConsumer(new InParameterModel[]{},new InParameterModel[]{});
				OnLoadData(this);
				this.IsDataBinding = true ; //加载完数据要绑定一次.目前加这.
			}
			else
			{
				//去除.已经移入到OnInit()中.
				//this.Model = (AITBarCodeUIModel)this.CurrentState[this.TaskId.ToString()];
			}
			adjust.ProcessAdjustAfterOnLoadData(this);
		            AfterOnLoad();
            
            adjust.ProcessAdjustAfterOnLoad(this);
		}
		protected override void OnPreRender(EventArgs e)
		{
			base.OnPreRender2(e);
		}
        protected override void OnPreRenderDo(EventArgs e)
        {
            adjust.ProcessAdjustBeforeOnPreRender(this);
			base.OnPreRender(e);
			this.CurrentState[this.TaskId.ToString()] = this.Model;
			RegisterClearWebPartPadding();
            UFIDA.U9.UI.PDHelper.FormAuthorityHelper.SetWebPartAuthorization(this);
            
			if (IsDataBinding) //2006-9-7 可由开发人员控制
			{
				BeforeUIModelBinding();
				//BtnFind对应隐藏域的数据传递。:True
				UFIDA.U9.UI.PDHelper.CommonReferenceHelper.BindingBtnFindParam(this);
								if(!Page.IsPostBack)
				{
					EnumTypeBinding.BindEnumControls(this);
				}
				UFIDA.U9.UI.Commands.CommandHelper.BindFlexData(this);
				adjust.ProcessAdjustBeforeDataBinding(this);
				if (this.IsOnlyDataBinding)
				{
					this.DataBinding();
				}
				adjust.ProcessAdjustAfterDataBinding(this);

				AfterUIModelBinding();
			}
			adjust.ProcessAdjustAfterOnPreRender(this);
        }
		protected override void OnInit(EventArgs e)
		{
			base.OnInit2(e);
		}
		protected override void OnInitDo(EventArgs e)
		{			 
			this.Page.InitComplete += new EventHandler(Page_InitComplete);
			WebPartBuilder.InitWebPart(this);
            this.Action = new AITBarCodeUIAction(this);
            adjust = new FormAdjust();
		    CreateFormChildControls();
		}
        void Page_InitComplete(object sender, EventArgs e)
        {

            adjust.ProcessInit(this);
        }
        #endregion

      
        
        #endregion

	
		/// <summary>
        /// WebPart View
        /// </summary>
        #region view Create Contorls
        private void CreateFormChildControls()
        {
            IUFContainer _panel = UIControlBuilder.BuildTopLevelContainer(this,"AITBarCodeForm",true,992,504);
            CommonBuilder.ContainerGridLayoutPropBuilder(_panel, 1, 3, 0, 10, 0, 0, 0, 5);
			InitViewBindingContainer(this, _panel,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_panel, 10,new GridColumnDef[]{new GridColumnDef(992,bool.Parse("False"),"Title"),},new GridRowDef[]{new GridRowDef(28,bool.Parse("True")),new GridRowDef(421,bool.Parse("False")),new GridRowDef(25,bool.Parse("True")),});
            //???还有用么?
            topLevelPanel = _panel;    
            
            UIControlBuilder.BuildCommonControls(this,ref updatePanel,ref wpFindID);
            





	
			_BuilderControl_Toolbar2(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Toolbar2, "1");		


	
			_BuilderControl_Card0(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card0, "3");		


	
			_BuilderControl_Card3(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card3, "2");		



			
     
			
			
            EventBind();
            AfterCreateChildControls();
            
        }        







				        
        private void _BuilderControl_Toolbar2(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container,"Toolbar2",true, true, "1",992, 28, 0, 0, 1, 1,"100");
            this.Toolbar2 = _Toolbar;
            
            ///foreach Toolbar下的所有控件，增加到此容器
                            this.BtnSave = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSave", "True", "True", 35, 28,"1", "",true,false,"8288c5a3-3b19-48d3-b139-f7018d2782ee","8288c5a3-3b19-48d3-b139-f7018d2782ee","732088dd-a935-49bc-b855-a0d5031848fe");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnSave);
            this.BtnSave.UIModel = this.Model.ElementID;
            this.BtnSave.Action = "SaveClick";
	                            this.BtnCancel = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCancel", "True", "False", 35, 28,"2", "",true,false,"f35cb480-9e8f-4689-aaac-3e9fc9a0c65e","f35cb480-9e8f-4689-aaac-3e9fc9a0c65e","0ea7351a-f823-44c3-9c2b-65aaaa6c4d2b");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnCancel);
            this.BtnCancel.UIModel = this.Model.ElementID;
            this.BtnCancel.Action = "CancelClick";
	                            this.BtnAdd = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAdd", "True", "True", 35, 28,"3", "",true,false,"19478b02-d2a9-4d7e-b7af-00070c61ff2d","19478b02-d2a9-4d7e-b7af-00070c61ff2d","716b39e0-7af9-4466-9d11-284f0c73f77f");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnAdd);
            this.BtnAdd.UIModel = this.Model.ElementID;
            this.BtnAdd.Action = "NewClick";
	                            this.BtnDelete = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnDelete", "True", "True", 35, 28,"4", "",true,false,"0467218f-229b-4954-b2d4-3c5976467f76","0467218f-229b-4954-b2d4-3c5976467f76","d977e410-e40a-461a-bcba-c17d49128e8a");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnDelete);
            this.BtnDelete.UIModel = this.Model.ElementID;
            this.BtnDelete.Action = "DeleteClick";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnCopy = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnCopy", "True", "True", 35, 28,"6", "",true,false,"be9f8d20-e484-464b-9818-a2c1b599b967","be9f8d20-e484-464b-9818-a2c1b599b967","15f2e95e-5122-4cec-bf1d-af1f779f484d");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnCopy);
            this.BtnCopy.UIModel = this.Model.ElementID;
            this.BtnCopy.Action = "CopyClick";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnSubmit = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnSubmit", "False", "False", 35, 28,"8", "",true,false,"c42c0f21-2fd7-49b2-ac54-62f811747b18","c42c0f21-2fd7-49b2-ac54-62f811747b18","ef2cae71-2d27-403f-b039-86078bcabe70");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnSubmit);
            this.BtnSubmit.UIModel = this.Model.ElementID;
            this.BtnSubmit.Action = "SubmitClick";
	                            this.BtnApprove = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnApprove", "False", "False", 35, 28,"9", "",true,false,"eb678a04-c7e1-44f1-b175-8f90f9903862","eb678a04-c7e1-44f1-b175-8f90f9903862","797f69e2-1da4-40ff-9147-0de13f555eff");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnApprove);
            this.BtnApprove.UIModel = this.Model.ElementID;
            this.BtnApprove.Action = "ApproveClick";
	                            this.BtnUndoApprove = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnUndoApprove", "False", "False", 35, 28,"10", "",true,false,"ae796775-bce3-4aed-89a9-20eaa4648a67","ae796775-bce3-4aed-89a9-20eaa4648a67","ff027bb7-fde2-4bc5-9369-b74060e2d6e1");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnUndoApprove);
            this.BtnUndoApprove.UIModel = this.Model.ElementID;
            this.BtnUndoApprove.Action = "UnApproveClick";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnFind = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFind", "True", "True", 35, 28,"12", "",true,false,"27621430-7bc7-4c0e-979e-f0108439d13e","27621430-7bc7-4c0e-979e-f0108439d13e","3d57dafa-fd2b-47cf-bc8d-7af2f48b181f");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFind);
            this.BtnFind.UIModel = this.Model.ElementID;
            this.BtnFind.Action = "FindClick";
	                            this.BtnList = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnList", "True", "True", 35, 28,"13", "",true,false,"c639596b-5a8c-4fc1-88bb-a3d670cda992","c639596b-5a8c-4fc1-88bb-a3d670cda992","6f46744d-aeef-43bc-9fd4-e003c9e1a734");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnList);
            this.BtnList.UIModel = this.Model.ElementID;
            this.BtnList.Action = "ListClick";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnFirstPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFirstPage", "True", "False", 35, 28,"15", "",true,false,"f229e163-fcd1-4f6a-a645-df86c0efd8ec","f229e163-fcd1-4f6a-a645-df86c0efd8ec","f4b04e10-d0aa-4100-8260-c7b1cad2a12b");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFirstPage);
            this.BtnFirstPage.UIModel = this.Model.ElementID;
            this.BtnFirstPage.Action = "FirstPage";
	                            this.BtnPrevPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrevPage", "True", "False", 35, 28,"16", "",true,false,"5ed368d8-7616-4696-b671-3f1c895f3b43","5ed368d8-7616-4696-b671-3f1c895f3b43","cc5c0009-0bab-4150-a656-ca6ba0898125");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnPrevPage);
            this.BtnPrevPage.UIModel = this.Model.ElementID;
            this.BtnPrevPage.Action = "PrevPage";
	                            this.BtnNextPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnNextPage", "True", "False", 35, 28,"17", "",true,false,"36afec41-957c-493a-97a4-eddb136af5b4","36afec41-957c-493a-97a4-eddb136af5b4","6c5358a5-3851-4882-bcfd-0c4311447375");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnNextPage);
            this.BtnNextPage.UIModel = this.Model.ElementID;
            this.BtnNextPage.Action = "NextPage";
	                            this.BtnLastPage = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnLastPage", "True", "False", 35, 28,"18", "",true,false,"dc4a37d1-35de-4016-81dd-582aef3cdeb0","dc4a37d1-35de-4016-81dd-582aef3cdeb0","5f5e0011-1918-44b1-af12-681b86c5adea");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnLastPage);
            this.BtnLastPage.UIModel = this.Model.ElementID;
            this.BtnLastPage.Action = "LastPage";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnAttachment = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnAttachment", "True", "False", 35, 28,"20", "",true,false,"92ccef79-ad54-438c-a16e-20a4fd407b97","92ccef79-ad54-438c-a16e-20a4fd407b97","c69b838c-088d-4eef-8514-b6656f5037b0");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnAttachment);
            this.BtnAttachment.UIModel = this.Model.ElementID;
            this.BtnAttachment.Action = "AttachmentClick";
	                            this.BtnFlow = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnFlow", "True", "False", 35, 28,"21", "",true,false,"e222698c-ae3c-470a-8053-1b69905c510a","e222698c-ae3c-470a-8053-1b69905c510a","2c4e0948-e1e2-4801-a46d-dec04efc88d2");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnFlow);
            this.BtnFlow.UIModel = this.Model.ElementID;
            this.BtnFlow.Action = "FlowClick";
	                            _Toolbar.Controls.Add(new UFWebToolbarSeparatorAdapter());
			                            this.BtnOutput = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutput", "True", "True", 35, 28,"23", "",true,false,"688fd549-5a92-49cc-8072-6d5377f6409a","688fd549-5a92-49cc-8072-6d5377f6409a","1128b325-731c-485c-bc57-21b774d979a0");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnOutput);
            this.BtnOutput.UIModel = this.Model.ElementID;
            this.BtnOutput.Action = "OutputClick";
	                            this.BtnPrint = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnPrint", "True", "True", 35, 28,"24", "",true,false,"27b5c615-cde5-458c-be74-833317249568","27b5c615-cde5-458c-be74-833317249568","7302fda7-df89-4a08-ba29-0651647c54dd");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnPrint);
            this.BtnPrint.UIModel = this.Model.ElementID;
            this.BtnPrint.Action = "PrintClick";
	
            
            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }



	                   
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card0",false,"FunctionBar", true, true, "3","","95127e9a-606e-4381-befa-e96445783578");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 25, 0, 2, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 22, 1, 0, 5, 10, 3, 10, 2);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(71,bool.Parse("True"),"Value"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),});
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





	
			_BuilderControl_DDBtnOperation(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DDBtnOperation, "1");		


	
			_BuilderControl_DDBtnActivity(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DDBtnActivity, "2");		


	
			_BuilderControl_DDBtnQuery(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DDBtnQuery, "3");		


	
			_BuilderControl_DDBtnTaskLink(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DDBtnTaskLink, "8");		


				this.BtnOk = UIControlBuilder.BuilderUFButton(_UFCard, true, "BtnOk", true, false, 80, 20, 0, 0, 1, 1, "100","", this.Model.ElementID,"",false,"626ebf9b-f65a-4dd5-8f32-96f84919878c","626ebf9b-f65a-4dd5-8f32-96f84919878c","888fb9ae-f547-4239-ab9a-2a522da108fa");
	

		
			UIControlBuilder.BuilderUFControl(this.BtnOk, "9");		


				this.BtnClose = UIControlBuilder.BuilderUFButton(_UFCard, true, "BtnClose", true, false, 80, 20, 0, 0, 1, 1, "100","", this.Model.ElementID,"",false,"020a5365-8f12-4970-b8df-17ce3ae60a68","020a5365-8f12-4970-b8df-17ce3ae60a68","0463c7f5-a207-4284-9743-e5adb03f7858");
	

		
			UIControlBuilder.BuilderUFControl(this.BtnClose, "10");		


				this.BtnReload = UIControlBuilder.BuilderUFButton(_UFCard, true, "BtnReload", true, false, 71, 20, 0, 0, 1, 1, "100","", this.Model.ElementID,"",false,"888ef8d0-7703-4c9b-8923-c189f84e9352","","888ef8d0-7703-4c9b-8923-c189f84e9352");
	

		
			UIControlBuilder.BuilderUFControl(this.BtnReload, "11");		


				this.BtnRefresh = UIControlBuilder.BuilderUFButton(_UFCard, true, "BtnRefresh", true, true, 80, 20, 10, 0, 1, 1, "100","", this.Model.ElementID,"",false,"1b8da2ad-63b0-4957-be40-3c0de234ff6b","","1b8da2ad-63b0-4957-be40-3c0de234ff6b");
	

		
			UIControlBuilder.BuilderUFControl(this.BtnRefresh, "12");		


				this.BtnCreateBarCode = UIControlBuilder.BuilderUFButton(_UFCard, true, "BtnCreateBarCode", true, true, 80, 20, 8, 0, 1, 1, "100","", this.Model.ElementID,"",false,"176764f0-4c00-43fe-a650-e9cbaed17789","","176764f0-4c00-43fe-a650-e9cbaed17789");
	

		
			UIControlBuilder.BuilderUFControl(this.BtnCreateBarCode, "13");		



									

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

				       
        private void _BuilderControl_DDBtnOperation(IUFContainer container)
        {
            IUFDropDownButton _dropDownButton = UIControlBuilder.BuildDropDownButton(container,"DDBtnOperation",true, true,"1"
            , 80, 20, 0, 0, 1, 1, "100","d2a9a1d5-ab53-4389-ba1e-48cb12f46906","d2a9a1d5-ab53-4389-ba1e-48cb12f46906");
            this.DDBtnOperation = _dropDownButton;
            
            ///foreach DropDownButton下的所有控件，增加到此容器
	                 this.MOList = UIControlBuilder.BuildDropDownButtonMenu(container,_dropDownButton,0,"MOList","", true, true,true,false,"","db84b474-cd52-40dd-b3d8-e676d05bab3f","","db84b474-cd52-40dd-b3d8-e676d05bab3f") ;
		 			
	                 this.QCList = UIControlBuilder.BuildDropDownButtonMenu(container,_dropDownButton,0,"QCList","", true, true,true,false,"","72ff41b7-24e2-4025-84e3-6260ad4edfb7","","72ff41b7-24e2-4025-84e3-6260ad4edfb7") ;
		 			
	                 this.ShipList = UIControlBuilder.BuildDropDownButtonMenu(container,_dropDownButton,0,"ShipList","", true, true,true,false,"","4fd574e3-ed8d-4c88-97c1-5a832a915bcb","","4fd574e3-ed8d-4c88-97c1-5a832a915bcb") ;
		 			
	                 this.RcvList = UIControlBuilder.BuildDropDownButtonMenu(container,_dropDownButton,0,"RcvList","", true, true,true,false,"","41dfd2c4-6dea-4daf-8dbe-373d0e972f4c","","41dfd2c4-6dea-4daf-8dbe-373d0e972f4c") ;
		 			
        }

				       
        private void _BuilderControl_DDBtnActivity(IUFContainer container)
        {
            IUFDropDownButton _dropDownButton = UIControlBuilder.BuildDropDownButton(container,"DDBtnActivity",true, false,"2"
            , 80, 20, 2, 0, 1, 1, "100","d24eab78-82b5-4f55-aa4a-f1c85a2c0489","0671547c-2882-4194-acc0-b77d696cedfd");
            this.DDBtnActivity = _dropDownButton;
            
            ///foreach DropDownButton下的所有控件，增加到此容器
        }

				       
        private void _BuilderControl_DDBtnQuery(IUFContainer container)
        {
            IUFDropDownButton _dropDownButton = UIControlBuilder.BuildDropDownButton(container,"DDBtnQuery",true, false,"3"
            , 80, 20, 4, 0, 1, 1, "100","61a151e6-462e-4392-b264-c988ddd844b8","1c44aa33-2c0b-4129-a801-8c0be05b499c");
            this.DDBtnQuery = _dropDownButton;
            
            ///foreach DropDownButton下的所有控件，增加到此容器
        }

				       
        private void _BuilderControl_DDBtnTaskLink(IUFContainer container)
        {
            IUFDropDownButton _dropDownButton = UIControlBuilder.BuildDropDownButton(container,"DDBtnTaskLink",true, false,"8"
            , 80, 20, 6, 0, 1, 1, "100","e9b85406-d7e2-41f5-94da-49a69f06327c","df50e3ad-dd2e-4357-8a9a-e9b873741c74");
            this.DDBtnTaskLink = _dropDownButton;
            
            ///foreach DropDownButton下的所有控件，增加到此容器
        }

	                   
        private IUFCard _BuilderControl_Card3(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card3",false,"none", true, true, "2","","5b6b4b22-bccd-455b-92b5-5b60993cb554");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 421, 0, 1, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 2, 2, 0, 5, 10, 0, 10, 0);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(971,bool.Parse("True"),"Value"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(415,bool.Parse("True")),new GridRowDef(1,bool.Parse("False")),});
            this.Card3 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





	
			_BuilderControl_DataGrid1(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DataGrid1, "1");		



	

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

				





       
        private void _BuilderControl_DataGrid1(IUFContainer container)
        {
            IUFDataGrid _UFGrid = UIControlBuilder.BuildGridControl("DataGrid1", UFSoft.UBF.UI.ControlModel.EditStatus.Edit, true, true,true,true,false,false,-1,true, false) ;
  			UIControlBuilder.BuilderUFControl(_UFGrid, "True", "True", "1");
			CommonBuilder.GridLayoutPropBuilder(container, _UFGrid, 972, 421, 0, 0, 2, 2, "100");
			InitViewBindingContainer(this, _UFGrid,  this.Model.AITBarCode, "AITBarCode", "", null, -1, "AIT条码");
			((UFSoft.UBF.UI.WebControlAdapter.UFWebDataGridAdapter)_UFGrid).PagingStrategy=UFSoft.UBF.UI.ControlModel.GridPagingStrategy.Auto;
			_UFGrid.AllowSelectAllPage=false;
			((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumAllData=false;
		        ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumSelectedData=false;
            this.DataGrid1 = _UFGrid;
            container.Controls.Add(_UFGrid);



			IUFDataGridColumn column ;
			GridColumn gridColumn ;
	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ID0","NumberColumnModel", "", 0,this.Model.AITBarCode.Fields["ID"]/*ID*/,"ID", true, false, true, false, false, false, 7, 100, "19.0",true, false,"","8932c223-0cf9-4bb3-88bc-8b292e6eba2c","8932c223-0cf9-4bb3-88bc-8b292e6eba2c","356aec38-cde0-4f1e-893e-95bbd8cc9973");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Item943","ReferenceColumnModel", "", 0,this.Model.AITBarCode.Fields["Item"]/*Item*/,"Item", false, true, true, false, false, false, 7, 100, "19.0",true, false,"","c4b3b41c-bfb2-4d6e-938f-8adba5e01300","c4b3b41c-bfb2-4d6e-938f-8adba5e01300","784f5740-056c-4e0a-beb8-26a8981f612a");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.AITBarCode.FieldItem_Code/*Item_Code*/, this.Model.AITBarCode.FieldItem_Code/*Item_Code*/, "beedebc3-5398-46b5-a237-5a3a4d13ad4f"
			,false,true,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "784f5740-056c-4e0a-beb8-26a8981f612a";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("ID", "Item", "Key"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Code", "Item", "Value"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Name", "Item_Name", "Value"));
							
							
							
							
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("InventoryUOM_ID", "UOM", "Key"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("InventoryUOM_Code", "UOM", "Value"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("InventoryUOM_Name", "UOM", "Text"));
							
							
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Item_Name40","TextBoxColumnModel", "", 0,this.Model.AITBarCode.Fields["Item_Name"]/*Item_Name*/,"Item_Name", false, true, true, false, false, true, 0, 100, "255",true, false,"","ef332c83-9090-4be5-b90b-7707c8bf234b","ef332c83-9090-4be5-b90b-7707c8bf234b","d829689c-dbc7-4c46-80d3-a20f5da6beda");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","255") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"UOM40","ReferenceColumnModel", "", 0,this.Model.AITBarCode.Fields["UOM"]/*UOM*/,"UOM", false, true, true, false, false, true, 7, 60, "19.0",true, false,"","28df4982-c7f7-4fa2-a1d0-3e598f87b54d","28df4982-c7f7-4fa2-a1d0-3e598f87b54d","a5065174-4207-4e6c-a602-3ad902a22cdc");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.AITBarCode.FieldUOM_Code/*UOM_Code*/, this.Model.AITBarCode.FieldUOM_Name/*UOM_Name*/, "2cb04e9c-44df-44e8-b518-f1ce0ba1e2cd"
			,false,true,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "a5065174-4207-4e6c-a602-3ad902a22cdc";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter
							
									
			((IUFFldReferenceColumn)column).AddReferenceInParameter("DateTime1", "DateTime", "Context");
								

									
			((IUFFldReferenceColumn)column).AddReferenceInParameter("DateTime2", "DateTime", "Context");
								
						
            //foreach Reference's output set data
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("ID", "UOM", "Key"));
							
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Code", "UOM", "Value"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Name", "UOM", "Text"));
							
							
							
							
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Qty40","NumberColumnModel", "", 3,this.Model.AITBarCode.Fields["Qty"]/*Qty*/,"Qty", false, true, true, false, false, true, 8, 60, "24.9",true, false,"0","f6c384f0-1e8c-4366-b53f-ccccd7f90192","f6c384f0-1e8c-4366-b53f-ccccd7f90192","20c924c5-b1ab-47ef-8f68-c820c642b0c8");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"BarCode40","TextBoxColumnModel", "", 0,this.Model.AITBarCode.Fields["BarCode"]/*BarCode*/,"BarCode", false, true, false, false, false, true, 0, 120, "500",true, false,"","4920caf0-330c-44a4-b9d6-97ae7a8a0785","4920caf0-330c-44a4-b9d6-97ae7a8a0785","f38f7220-8b54-4dde-b298-bb7515cea926");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","500") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"PrintNum40","NumberColumnModel", "", 0,this.Model.AITBarCode.Fields["PrintNum"]/*PrintNum*/,"PrintNum", false, true, false, false, false, true, 2, 80, "10.0",true, false,"0","4257bc24-60d9-480f-964b-33cd5cbf1bbd","4257bc24-60d9-480f-964b-33cd5cbf1bbd","aeaa5655-2b10-401e-afbc-266e14085a26");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Printer40","TextBoxColumnModel", "", 0,this.Model.AITBarCode.Fields["Printer"]/*Printer*/,"Printer", false, true, false, false, false, true, 0, 100, "50",true, false,"","c938cf16-9f10-4b4f-bfa1-486867b523a6","c938cf16-9f10-4b4f-bfa1-486867b523a6","6de08a8e-944b-4a07-b6ab-081f3eccc37b");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"PrintTime40","DatePickerColumnModel", "", 0,this.Model.AITBarCode.Fields["PrintTime"]/*PrintTime*/,"PrintTime", false, true, false, false, false, true, 5, 100, "19",true, false,"","49376175-d6dd-4251-bd37-a31a7905cd45","49376175-d6dd-4251-bd37-a31a7905cd45","4c76711e-a5b9-46b7-989e-3444138c7c22");
                   
			((IUFDatePickerColumn)column).DateTimeType = DateTimeType.DateTime;
            ((IUFDatePickerColumn)column).DateTimeFormat = CurrentState._I18N._DateTimeFormatInfo;
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"SrcDocNo40","TextBoxColumnModel", "", 0,this.Model.AITBarCode.Fields["SrcDocNo"]/*SrcDocNo*/,"SrcDocNo", false, true, false, false, false, true, 0, 100, "50",true, false,"","01653bda-4045-4776-b177-592d14756b35","01653bda-4045-4776-b177-592d14756b35","6b03979d-d247-4a50-a6c9-4480af3e2697");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"SrcDocLineNo40","NumberColumnModel", "", 0,this.Model.AITBarCode.Fields["SrcDocLineNo"]/*SrcDocLineNo*/,"SrcDocLineNo", false, true, false, false, false, true, 2, 80, "10.0",true, false,"0","6f66c39c-1b8d-4df9-afac-9f692cf9d775","6f66c39c-1b8d-4df9-afac-9f692cf9d775","ffe3db4b-391c-494c-aa34-dec8e2950d72");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"LotCode40","TextBoxColumnModel", "", 0,this.Model.AITBarCode.Fields["LotCode"]/*LotCode*/,"LotCode", false, true, true, false, false, true, 0, 100, "50",true, false,"","5e8d3ed3-8870-4b14-a80a-554eecf445e3","5e8d3ed3-8870-4b14-a80a-554eecf445e3","a68408d0-4f45-4190-a8b7-a4ee34fe6d8e");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Project40","ReferenceColumnModel", "", 0,this.Model.AITBarCode.Fields["Project"]/*Project*/,"Project", false, true, true, false, false, true, 7, 100, "19.0",true, false,"","4c2b85a5-230a-4b21-9178-e92ccaa28845","4c2b85a5-230a-4b21-9178-e92ccaa28845","07c16c34-ef32-4624-9430-dd70fc45448a");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.AITBarCode.FieldProject_Code/*Project_Code*/, this.Model.AITBarCode.FieldProject_Name/*Project_Name*/, "6d9ff12b-86a7-4d8b-b6f8-eaca0d5d83b7"
			,false,true,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "07c16c34-ef32-4624-9430-dd70fc45448a";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter
							



						
            //foreach Reference's output set data
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("ID", "Project", "Key"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Code", "Project", "Value"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Name", "Project", "Text"));
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Grade0","DropDownListColumnModel", "", 0,this.Model.AITBarCode.Fields["Grade"]/*Grade*/,"Grade", false, true, true, false, false, true, 2, 100, "10.0",true, false,"-1","3a0a2ff0-feb5-41b7-8c04-8dbbb0e88ca2","3a0a2ff0-feb5-41b7-8c04-8dbbb0e88ca2","4089d9c4-9ebc-48f4-9cbd-db691cf6ca81");
			((IUFDropDownListColumn)column).EnumTypeID  = "UFIDA.U9.CBO.SCM.Item.GradeEnum";
			EnumTypeList.Add("UFIDA.U9.CBO.SCM.Item.GradeEnum");
			EnumControlsMap.Add(column, _UFGrid);
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Customer40","ReferenceColumnModel", "", 0,this.Model.AITBarCode.Fields["Customer"]/*Customer*/,"Customer", false, true, true, false, false, true, 7, 100, "19.0",true, false,"","3ea977e7-c388-4410-ae71-6fb5a4b421de","3ea977e7-c388-4410-ae71-6fb5a4b421de","e4f9963e-4db3-46ba-aca1-d85636bd4332");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.AITBarCode.FieldCustomer_Code/*Customer_Code*/, this.Model.AITBarCode.FieldCustomer_Name/*Customer_Name*/, "d6428416-2436-4ab4-af0f-1464119d76e7"
			,false,true,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "e4f9963e-4db3-46ba-aca1-d85636bd4332";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("ID", "Customer", "Key"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Code", "Customer", "Value"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Name", "Customer", "Text"));
							
							
							
							
							
							
							
							
							
							
							
							
							
							
							
							
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Supplier40","ReferenceColumnModel", "", 0,this.Model.AITBarCode.Fields["Supplier"]/*Supplier*/,"Supplier", false, true, true, false, false, true, 7, 100, "19.0",true, false,"","478b7f07-7aab-46c6-9a97-c71ec9294a1a","478b7f07-7aab-46c6-9a97-c71ec9294a1a","470a8e5c-6730-48d7-8875-4bff99a690f0");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.AITBarCode.FieldSupplier_Code/*Supplier_Code*/, this.Model.AITBarCode.FieldSupplier_Name/*Supplier_Name*/, "ea01ca72-c3a4-4563-b9b9-d47c720f051c"
			,false,true,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "470a8e5c-6730-48d7-8875-4bff99a690f0";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("ID", "Supplier", "Key"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Code", "Supplier", "Value"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Name", "Supplier", "Text"));
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Memo0","TextBoxColumnModel", "", 0,this.Model.AITBarCode.Fields["Memo"]/*Memo*/,"Memo", false, true, true, false, false, true, 0, 100, "50",true, false,"","a9b0b748-d97b-4455-9d33-275e238520f9","a9b0b748-d97b-4455-9d33-275e238520f9","6a3f74c0-a5ed-4ad5-a140-f5e28109cc6f");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"DescFlexField","TextBoxColumnModel", "", 0,null,"", false, true, true, false, false, true, 0, 100, "",true, false,"","","","d0e5aa25-bd30-4847-9150-efb22e5f27ae");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","") ;          
	  
		 
        }





		#endregion
		

	}
}
